<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Login extends CI_Controller {

	 function __construct()
	 {
	   parent::__construct();
	 }

	 function index()
	 {
	   $this->load->helper(array('form'));
	   $this->load->view('admin/login_view');
	 }

	 function logout()
	 {
	 	$this->session->unset_userdata('logged_in');
	    session_destroy();
	    redirect($_SERVER['HTTP_REFERER']);
	 }

	 // function changepass()
	 // {
	 // 	$this->template->load('admin/template','admin/changepass');
	 // }
}

?>
